const TOKEN_KEY='token'
function setToken(token){
    localStorage.setItem(TOKEN_KEY,token)
    console.log(token);
}

function getToken(){
 //    注意
 return  localStorage.getItem(TOKEN_KEY)

}
function removeToken(){
    localStorage.removeItem(TOKEN_KEY)
}

export {setToken,getToken,removeToken}